const systemInfo = uni.getSystemInfoSync()

let safeTopHeight = 0

/**
 * 获取navbar高度
 */
export function getNavbarHeigh() {
  const height = systemInfo.platform === 'ios' ? 44 : 48

  safeTopHeight = systemInfo.safeArea.top + height
  return safeTopHeight
}
